import request from '@/utils/request'

/**
 * 获取一级分类列表
 * @param {*} options {name,page,rows}
 */
export function getKindList1(options) {
  return request({
    url: '/mg/KeKind/GetKindOneList',
    method: 'get',
    params: options
  })
}

/**
 * 保存一级分类
 * @param {*} options {id,name,sort}
 */
export function saveKindOne(options) {
  return request({
    url: '/mg/KeKind/saveKindOne',
    method: 'get',
    params: options
  })
}

/**
 * 删除一级分类
 * @param {*} options {id}
 */
export function deleteKindOne(options) {
  return request({
    url: '/mg/KeKind/deleteKindOne',
    method: 'get',
    params: options
  })
}

/**
 * 获取二级分类列表
 * @param {*} options {upid,name,page,rows}
 */
export function getKindList2(options) {
  return request({
    url: '/mg/KeKind/GetKindTwoList',
    method: 'get',
    params: options
  })
}

/**
 * 保存二级分类
 * @param {*} options {id,name,sort}
 */
export function saveKindTwo(options) {
  return request({
    url: '/mg/KeKind/saveKindTwo',
    method: 'get',
    params: options
  })
}

/**
 * 删除二级分类
 * @param {*} options {id}
 */
export function deleteKindTwo(options) {
  return request({
    url: '/mg/KeKind/deleteKindTwo',
    method: 'get',
    params: options
  })
}

/**
 * 获取三级分类列表
 * @param {*} options {upid,name,page,rows}
 */
export function getKindList3(options) {
  return request({
    url: '/mg/KeKind/GetKindThreeList',
    method: 'get',
    params: options
  })
}

/**
 * 保存三级分类
 * @param {*} options {id,name,sort}
 */
export function saveKindThree(options) {
  return request({
    url: '/mg/KeKind/saveKindThree',
    method: 'get',
    params: options
  })
}

/**
 * 删除三级分类
 * @param {*} options {id}
 */
export function deleteKindThree(options) {
  return request({
    url: '/mg/KeKind/deleteKindThree',
    method: 'get',
    params: options
  })
}
